/* ===================== RESET ===================== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  padding: 2rem;
}

/* .container {
    padding-bottom: 80px;
    max-width: 1000px;
    margin: 0 auto;
} */

/* ===================== THEME VARIABLES ===================== */
:root {
  --bg-primary: #E2DFD2;
  --bg-secondary: #E2DFD2;
  --text-primary: #1d1d1f;
  --text-secondary: #555;
  --accent: #4604c0;
  --border: #e4e4e4;
}


/* ===================== UTILITIES ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  text-align: center;
  border: 0px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  border: 2px solid ;
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/*============= DROPDOWN ================*/

/* desktop dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #E2DFD2;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #333333;
  text-decoration: none;
}
.dropdown-link:hover {
    border-radius: 15px;
    background-color: rgba(70, 4, 192, 0.1);
    color: #4604c0;
    transition: ease;
}

/* ============ MOBILE MENU BUTTON =============== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
}



/* ============= HEADER ================= */

/* Header Highlighted text  */
.highlight {
  color: #FF5722;
  font-weight: bold;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif ;
   position: relative;
   transition: color 0.5s ease;
   cursor: pointer;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #3F00FF;
    transition: width 0.5s ease;
}
.highlight:hover {
    color: #3F00FF;
}

.highlight:hover::after {
    width: 100%;
}


.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 1rem 0;
}


/* =============== NAVIGATION ================ */
.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* Hover effect: soft color change and background */
.nav-link:hover {
    background-color: rgba(70, 4, 192, 0.1);
    color: #4604c0;
}


/* ============ MOBILE NAV =============== */

/* Hamburger button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    z-index: 1001;

}

/* Mobile nav hidden by default (compact dropdown) */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;

    background: var(--bg-primary);
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    flex-direction: column;
    z-index: 1000;
}

/* Show menu when active */
.mobile-nav.active {
    display: flex;
}

/* Mobile nav list */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;

}

/* Links styling */
.mobile-nav-list a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Subtle background on hover */
.mobile-nav-list a:hover {
    background-color: rgba(70, 4, 192, 0.1);
    color: #4604c0;

}


/* Dropdown menu hidden by default */
.mobile-dropdown-menu {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-left: 0.5rem;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Show dropdown on hover or click */
/* Open dropdown */
.mobile-dropdown.open .mobile-dropdown-menu,
.mobile-dropdown:hover .mobile-dropdown-menu {
    max-height: 500px;
    /* large enough to fit content */
    opacity: 1;
}


/* ===================== HERO ===================== */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ===================== BLOG GRID ===================== */
.blogs {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.blog-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
}

.blog-body {
  padding: 1.5rem;
  border-radius: 30px;
  cursor: pointer;
}

.blog-category {
  background: #443bf4;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.blog-title a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-excerpt {
  margin: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.blog-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.author-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.author-name {
  font-weight: 500;
}

.meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
}


/*  ============== LOAD MORE BUTTON  ==============*/
.load-more {
  display: block;
  margin: 3rem auto 40px;
  padding: 0.85rem 2rem;
  font-size: 0.89rem;
  background-color: #333;
  color: #e4e4e4;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
}

/* Hover effect */
.load-more:hover {
    background-color: rgba(70, 4, 192, 0.1);
    color: #4604c0;
    transform: scale(1.05);

}


/* ===================== SIDEBAR ===================== */

.newsletter {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
  text-align: center;
}

.newsletter p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0;
}

.newsletter input {
  width: 50%;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1.7px solid #000;
  background: var(--bg-secondary);
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 0.9rem;

}

.newsletter .btn-primary {
  width: 50%;
  padding: 0.6rem;
  font-size: 0.9rem;
  border-radius: 6px;
}


.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.7rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.social-links a:hover {
  color: #3F00FF;
}

/* ============ Animation when load ================ */

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg-secondary);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.footer-brand img {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 250px;
}

.footer-links h3,
.footer-legal h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links a,
.footer-legal a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: inline;
    }

}
